package com.yb.guigu.pick.auth.controller;

import com.yb.guigu.pick.core.bean.GuiguResult;
import com.yb.guigu.pick.auth.service.IMemberUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/6/25 15:58
 * FileName: MemberUserController
 * Description:
 */

@RestController
@RequestMapping("/member_user/")
public class MemberUserController {


    @Autowired
    IMemberUserService memberUserService;

    @GetMapping("login")
    public GuiguResult<?> login(@RequestParam String code){


        return memberUserService.login(code);
    }
}
